package aaaCfg;

import com.attilax.io.pathx;
import com.attilax.util.PropX;

/**
 * aaaCfg.IocX4jobui
 * @author Administrator
 *
 */
public class IocX4jobui {

	public static void main(String[] args) {
		System.out.println(aaaCfg.IocX4jobui.getCfgVal("hre_web_url"));

	}

	public static String getCfgVal(String string) {
		String x = "resin.server："+ System.getProperty("resin.server");
		System.out.println(x);
		 String apptype=System.getProperty("apptype");
		 String cfgpath=pathx.webAppPath()+"/"+apptype+".cfg.txt";
		 PropX px=new PropX(cfgpath);
		return px.getProperty(string);
	}

}
